namespace Cik.Gapi4Net.Domain.Output.VideoSearch
{
    using System;
    using Contract;
    using Core.Json;
    using Newtonsoft.Json;

    [JsonObject]
    public class MainResult : IMainResult
    {
        [JsonProperty("GsearchResultClass")]
        public string GsearchResultClass { get; set; }

        [JsonProperty("content")]
        public string Content { get; set; }

        [JsonProperty("duration")]
        public int Duration { get; set; }

        [JsonProperty("playUrl")]
        public string PlayUrl { get; set; }

        [JsonProperty("published")]
        [JsonConverter(typeof(Rfc822DateTimeConverter))]
        public DateTime Published { get; set; }

        [JsonProperty("publisher")]
        public string Publisher { get; set; }

        [JsonProperty("rating")]
        public double Rating { get; set; }

        [JsonProperty("tbHeight")]
        public int TbHeight { get; set; }

        [JsonProperty("tbUrl")]
        public string TbUrl { get; set; }

        [JsonProperty("tbWidth")]
        public int TbWidth { get; set; }

        [JsonProperty("title")]
        public string Title { get; set; }

        [JsonProperty("titleNoFormatting")]
        public string TitleNoFormatting { get; set; }

        [JsonProperty("url")]
        public string Url { get; set; }

        [JsonProperty("videoType")]
        public string VideoType { get; set; }
    }
}